import request from '@/utils/request'

// 获取菜单列表
export function getList(params) {
  return request({
    url: '/blog-front/back/menu/list',
    method: 'get',
    params
  })
}

// 添加或更新标签
export function addOrUpdate(data) {
  return request({
    url: '/blog-front/back/menu/addOrUpdate',
    method: 'post',
    data
  })
}

// 删除标签
export function del(id) {
  return request({
    url: '/blog-front/back/menu/' + id,
    method: 'delete'
  })
}
